package com.jmb.backend.service;

import com.github.pagehelper.PageInfo;
import com.jmb.backend.exception.BusinessException;
import com.jmb.backend.exception.ValidException;
import com.jmb.backend.pojo.DataFactoryDO;
import com.jmb.backend.pojo.DataFactoryDTO;
import com.jmb.backend.pojo.DataFactoryVO;


public interface DataFactoryService {
    void saveDataFactory(DataFactoryDO dataFactoryDO) throws ValidException;

    void modifyDataFactory(DataFactoryDO dataFactoryDO) throws ValidException;

    void removeDataFactoryById(Integer id);

    DataFactoryVO findDataFactoryById(Integer id);

    PageInfo<DataFactoryVO> findDataFactoryList(DataFactoryDTO dataFactoryDTO, Integer pageNum, Integer pageSize);

    long executeDataFactory(Integer id, String executor) throws BusinessException;
}
